package com.zeldu.student.service.impl;

import com.zeldu.student.mapper.StudentInfoMapper;
import com.zeldu.student.pojo.Student;
import com.zeldu.student.service.StudentInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StudentInfoServiceImpl implements StudentInfoService {

    @Autowired(required = false)
    private StudentInfoMapper studentInfoMapper;

    @Override
    public Student getSelfInfo(Long id) {
        return studentInfoMapper.getSelfInfo(id);
    }

    @Override
    public int mdfSelfInfo(Student student) {
        return studentInfoMapper.mdfSelfInfo(student);
    }

    @Override
    public int joinClass(Student student) {
        return studentInfoMapper.joinClass(student);
    }

    @Override
    public String getClassName(Long id) {
        return studentInfoMapper.getClassName(id);
    }
}
